<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT">
    
    <title><spring:message code="sys.site.title" arguments="${platformName}"/></title>
    <meta name="keywords" content="<spring:message code="sys.site.keywords" arguments="${platformName}"/>">
    <meta name="description" content="<spring:message code="sys.site.description" arguments="${platformName}"/>">
    
    <link type="text/css" rel="stylesheet" href="${staticPath}/layui/css/layui.css">
    <link type="text/css" rel="stylesheet" href="${staticPath}/layui/modules/css/index.css">
    
    <link type="text/css" rel="stylesheet" href="${staticPath}/vendors/font-awesome/css/font-awesome.min.css">
</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header layui-bg-blue">
            <div class="left-logo">
                <img src="${staticPath}/layui/modules/images/index/hi.png">
                                              您好，
                ${fns:getUser().username} 欢迎来到水滴团队
                <!--a href="message.html" target="mainFrame"><i class="layui-icon"><img src="${staticPath}/layui/modules/images/index/email.png" /></i></a-->
                <a href="${adminPath}/logout"><i class="layui-icon"><img src="${staticPath}/layui/modules/images/index/quit.png" /></i> 退出</a>
            </div>
        </div>
        
        <div class="layui-side layui-bg-aliceblue">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree">
                    <div class="left-header">
                    	<i class="layui-icon"><img src="${staticPath}/layui/modules/images/index/index.png"/></i>  
                    	<a href="javascript:;" target="mainFrame" style="color:#1E9FFF" m-href="${adminPath}/client/task">个人首页</a>
                    </div>
                    <c:forEach items="${menus}" var="menu">
					     <c:choose>
					     	<c:when test="${menu.hasChildren}">
					     		<div class="left-nav-item">${menu.name}<i class="layui-icon"><img src="${staticPath}/layui/modules/images/index/icon01.png"/></div>
					     		<c:forEach items="${menus}" var="secondMenu">
					     			<c:if test="${secondMenu.parentId == menu.id && secondMenu.isshow eq '1'}">
					     				<div class="left-nav-child" m-href="${adminPath}/${secondMenu.url}"><i class="fa <c:if test="${empty secondMenu.menuIcon}">fa-angle-right</c:if>${secondMenu.menuIcon}"></i>${secondMenu.name}</div>
					     			</c:if>
					     		</c:forEach>
					     	</c:when>
					     </c:choose>
					</c:forEach>
                </ul>
            </div>
        </div>
        <div class="layui-body" style="left: 150px;bottom: 0px;">
            <iframe class="layadmin-iframe" frameborder="0" ></iframe>
        </div>
    </div>
	<script src="${staticPath}/layui/layui.js"></script>
    <script>
	    layui.use(['jquery'], function(){
		     var $ = layui.jquery;
		     $("[m-href]").bind({
		    	 click:function(){
		    		 $(".layadmin-iframe").attr("src",$(this).attr("m-href"));
		    	 }
		     });
		});
	</script>
</body>

</html>